﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2012/3/7 20:39:51
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Restaurant.CoreType.Enums;

namespace Sector7.Restaurant.CoreType.Events
{
    /// <summary>
    /// 点击桌位控件菜单项事件委托
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    public delegate void ClickTableControlMenuItemEventHandler(object sender, ClickTableControlMenuItemEventArgs e);

    /// <summary>
    /// 点击桌位控件菜单项事件参数
    /// </summary>
    public class ClickTableControlMenuItemEventArgs
    {
        #region Inner members
        private int _tableId;
        private TableControlMenuItemType _menuItemType;
        #endregion

        #region Accessor
        /// <summary>
        /// 获取被点击桌位号
        /// </summary>
        public int TableId
        {
            get { return _tableId; }
        }

        /// <summary>
        /// 获取被点击菜单项类型
        /// </summary>
        public TableControlMenuItemType MenuItemType
        {
            get { return _menuItemType; }
        }
        #endregion

        #region Structure
        /// <summary>
        /// 创建 ClickTableControlMenuItemEventArgs 对象
        /// </summary>
        /// <param name="tableId"></param>
        /// <param name="menuItemType"></param>
        public ClickTableControlMenuItemEventArgs(int tableId, TableControlMenuItemType menuItemType)
        {
            _tableId = tableId;
            _menuItemType = menuItemType;
        }
        #endregion
    }
}
